package bigdata.kafka;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @Author: admin
 * @Description:
 * @Date: 2019/5/1 6:46
 */

public class Test {

    public Test(){
        System.out.println("11111111");
    }

    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, IOException {
        Class clszz=Class.forName("bigdata.kafka.Test");

        Object instance=clszz.newInstance();

        Properties properties=new Properties();
        InputStream is= instance.getClass().getClassLoader().getResourceAsStream("./application.yml");
        properties.load(is);
        System.out.println( properties.get("sjw"));

    }
}
